#ifndef SpirateBot_h
#define SpirateBot_h

#include <Arduino.h>
#include <esp_now.h>
#include <WiFi.h>
#include <esp_wifi.h>  // only for esp_wifi_set_channel()

#define CHANNEL 1





//define sound speed in cm/uS
#define SOUND_SPEED 0.034



class SpirateBot {



public:

  const char *ssid = "Sprate";
  const char *password = "123456789";


 
  void Init();
  void enableRCController();
  void InitESPNow();
  void configDeviceAP();
  void front();
  void back();
  void left();
  void right();
  void stop();
  void jump();
  void pushUp();
  int checkDistance();
  void startSensor();
  int getDistance();
private:
};

#endif
